package io.github.talelin.latticy.bo;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * BannerItem入参信息,服务于新增、修改
 *
 * @author YiHua
 * @date 2021/11/26 12:56 上午
 */
@Getter
@Setter
public class BannerItemBO {

       @NotBlank
       @Length(min = 1, max = 255)
       private String img;

       @Length(min = 1, max = 255)
       private String name;

       @NotNull
       @Positive
       private Integer type;

       @NotNull
       @Positive
       private Integer bannerId;

       @Length(min = 1, max = 50)
       private String keyword;

}
